#ifndef SOCKETSERVER_H
#define SOCKETSERVER_H

#include <QtWidgets/QMainWindow>
#include <QtNetwork/QtNetwork>  
#include <QTcpServer>  
#include <QTcpSocket> 
#include "ui_socketserver.h"

class SocketServer : public QMainWindow
{
	Q_OBJECT

public:
	explicit SocketServer(QWidget *parent = 0);
	~SocketServer();
	    QTcpServer * server;  
    QTcpSocket * socket; 

private slots:  
    void newConnection();  
    void ReceiveData();  
    void on_pushButton_2_clicked();  
    void on_pushButton_clicked();  

private:
	Ui::SocketServerClass ui;
};

#endif // SOCKETSERVER_H

 

